home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 14920 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  865 b 

  1. Path: rcogate.rco.qc.ca!altitude!usenet
  2. From: ramrod@cam.org
  3. Newsgroups: comp.lang.c,comp.lang.c++
  4. Subject: H E L P
  5. Date: Tue, 02 Apr 96 06:30:47 GMT
  6. Organization: Home
  7. Message-ID: <N.040296.013047.18@DynamicPPP-185.HIP.CAM.ORG>
  8. NNTP-Posting-Host: dynamicppp-185.hip.cam.org
  9. X-Newsreader: Quarterdeck Message Center [1.0]
  10.  
  11. Could anyone please tell me how to write the following program.
  12. Using nested looping, the output is supposed to look like this.
  13.  
  14. Please enter your age in years (0 to end the program): 10
  15. Happy Birthday To You
  16. You are 10 Years Old
  17.  
  18. \x01\x01\x01\x01\x01\x01\x0\x01\x01\x01(ten happy faces)
  19.  
  20. The part that I am having a hard time with is the part that
  21. whatever number I enter for the age, I'm supposed to get the same number
  22. of happy faces, automatically.  For example If I say I am 45 years old,
  23. then the program should show 45 happy faces.
  24.  
  25.  
  26.  
  27.